import Context from "@/utils/context"
import { useContext, useState } from "react"

const OrganizationManage = () => {

    const value = useContext(Context);
    // console.log(value);
    const [inputValue, setInputValue] = useState("hello")

    return (
        <div>
            组织管理
            {/* 受控 */}
            {/* <input type="text" value={inputValue} onChange={(event) => {
                // console.log("用户正在输入", event.target.value);
                setInputValue(event.target.value)
            }} /> */}

            {/* 非受控 */}
            <input type="text" defaultValue={inputValue} />
            <button onClick={() => {
                setInputValue("你好");
            }}>按钮</button>
        </div>
    )
}

export default OrganizationManage